package com.xxgc.moriserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;
import org.dromara.mpe.processer.annotation.AutoDefine;
import org.dromara.mpe.processer.annotation.AutoMapper;
import org.dromara.mpe.processer.annotation.AutoRepository;

@AutoDefine
@AutoMapper
@AutoRepository
@Data
@Table(value = "warehouse", comment = "仓库表")
public class WarehouseEntity {
    @ColumnComment("仓库ID")
    @ColumnId(mode = IdType.AUTO, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private String warehouseId;

    @ColumnComment("仓库名")
    private String warehouseName;

    //用户id
    @ColumnComment("用户id")
    private String userId;

    //物品id
    @ColumnComment("物品id")
    private String goodsId;

    @ColumnComment("物品数量")
    private Integer goodsNum;

    @ColumnComment("仓库描述")
    private String warehouseDesc;

    @ColumnComment("仓库图标")
    private String warehouseIcon;

    @ColumnComment("仓库库存")
    private Integer warehouseStock;

    @ColumnComment("仓库状态")
    private Integer warehouseStatus;
}
